[#252] Removed unnecessary child.getparent() call