Factor out common null test in security metadata handling, reducing cyclomatic complexity.
Add initial unit tests for NITF input transformer.