Prevent critical error from being thrown when in strict mode (reproduce in
Chrome 21). Since we are trying to detect if Chrome fails a check, it is
appropriate to use a try-catch around the test. The workaround for Chrome is
still applied if the check fails.