Adding checks to sab code in ndpp to not try and dealloc data which hasnt  been alloced.