Fix a crash when the subdivision parent is null, expand test coverage.