Add guard against endless resize cycles in IE7.