Fixed IE9- version detection

Wrong optimization broke the test.