Fixed crash when no valid response is received