fixed a onTopLayer function bug when checking iframe's child.