Handle the Error 1004 Arrow is not defined

Add more error handling when webdriver itself got java script exception.
Should print the original error message if any issues happened during webdriver.getCurrentUrl().

Do more Error Manager error checking in function, such as testing initialization and reporting.