Bug 897005 - Fix mozelement_window.js test to start from a clean state. r=dhunt