FCREPO-1196: build empty query when no search terms given, account for null format values