net/cxgb4: Check the return from t4_query_params properly