handle special case where sanitized query is empty string