Fixing MongoDB search query negation issues