Fix for VUFIND-762 (empty parens cause Solr error)
Includes unit tests.