fix case in search test
ENGINE-170, fix NPE when the exception has no message