[DEBUG][io] added protections against NULL arguments
[DEBUG][io] added protections against NULL arguments

Change-Id: Ic08085c037fcadf9155321b0509803b0f1f5ebba

Parrot-Developers/fusion,ncarrier/fusion,Parrot-Developers/fusion,ncarrier/fusion