fixed KeyError problems with new version of mongodb
Merge pull request #18 from josephmisiti/master

fixed KeyError problems with new version of mongodb