Bug ZK-2363: resizing a window after maximizing it causes a JS error