Fixed NullReferenceException when request times out