DATAMONGO-799 - Fix failing test in MongoTemplateTests on Mongo 2.5.x.

Generalized exception message matching to reflect the changed exception message in mongo 2.5.x that also works with previous versions of MongoDB.