Thank you, Kristof!
I hoped there would be a solution where I could avoid another fetch, but your suggestion seems to be the solution. Since I know the new nodes always will be the main nodes I might use the code
$nodeID=$contentObject->mainNodeID();
I found this function after I did the original post.