This is something that often happens over time with mountain biking... esp as things are getting a bit worn and riding over rough ground. It is easy to get the chain back on as long as you have enough momentum and just take your time. If you rush.. you will stuff up. I have to say though, I have never had this happen to me on my road bikes..