Add check for node being null in receiveModelTransformChanges

Also add some comments and rearrange some logic to make it more clear and efficient
refs #2019