Fix for forge.document.location() bug under IE