Update mongodb.rb

Fix for LOGSTASH-1371
Merge pull request #659 from bitsofinfo/master

Update mongodb.rb w/ fix for LOGSTASH-1371