[#PRX-250 Possible race condition for receiving n-event-rsp]

fix possible null pointer for file deletion