fix crash when cancelling null request