Fixing empty search submit error