Bug fixed B70-ZK-2067: When window contains opened popup, set its mode to modal or overlapped would cause js error

http://tracker.zkoss.org/browse/ZK-2067