NG-16398: Added a check for the case where IE8 has no currentStyles property.