Fixed IE7 crash

IE7 crash fix for (some?) jQuery versions, at least jQuery 1.7.x in our development environment (native IE7, not emulated).