Removed username in search query if undefined.