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 (CC @ptarjan )

Closes #2240