WebUI: Fix upload window closing on old browsers.