Added more checks for NULL function pointers
Updated the NP strings debug code