fixing NPE and test to reproduce #3113 (hibernate search: wildcard query can cause BooleanQuery: maxClauseCount is set to 1024)
fixing NPE and test to reproduce #3113 (hibernate search: wildcard query can cause BooleanQuery: maxClauseCount is set to 1024)