make sure we only merge object nodes when they both have an object