Fixed a Null pointer exception that was noticed in the unit tests for parent validity checking