Check for nullptr in IOBuffer after abort request.

Not sure why its nullptr. but thats the reason for the crash. can you have a look @ptjarjan 

Closes #2240