Fix for exception thrown by RemoveChild() when _iAssignedPartition is null

Line 95 of the iRegisterEntity function could be changed the same way,
just to be sure (has not thrown an exception in my project yet)