Update mongodb_js_inject_collection_enum.rb

Fix some logic bugs that caused incorrect results.