Update mongodb.rb

Fix for LOGSTASH-1371