Handle null pointers (happens at missing namespaces) Fixes issue #15.