Fixes double error message after unsuccessful user search