EXOGTN-1347 better handle error when injecting js on IE