Search query make empty string rather than undefined
Error messages specific to use case