Fix for undefined urls in old usages of window.open