Two locations where null pointers could be called.
Merge pull request #3050 from bakercp/bugfix-ofXML-null-pointer

ofXML: Two locations where null pointers could be called.