Fix query_and_build_objects when request fail.