Ensure there is a gateway response before trying to parse one