Fix crash when response data is nil