Fix 500 error when parameter q was absent in the suggest handler