Fixed a possible exception from the URL prompt window.