Allow and handle nil namespace_identifier
Merge pull request #416 from r4um/fix_398

Closes #398, Allow and handle nil namespace_identifier.