Fix performance of RecursiveReplaceCandidateNode.getModifiedChild()