Extra condition so it doesn't crash in IE8

A simple extra condition so it doesn't crash in IE8 (even though it's not officially supported)