Fix header search paths.
Check for empty query string, return nil instead of crashing from CLuceneError exception getting thrown.