Fix empty query handling in User#search