Fixed issue with MongoDB 2.6.

Fixes #5