The test for NRT_NULL_MAGIC failed to capture some problems if the pointer to the structure was NULL. This is an ammendment to commit 2a55aa0b