Tweak to handle when all the children in a newly created object node are hidden.