#1036 bug fix for IE9 as it throws an exception instead of ignoring the error