Fixed possible issue with loader not being removed in some cases in IE8