Fix IE8 exceptions when setting width to negative value (#13334)

Change-Id: Ib0e2c2aa36568473d8aa98b53832128133127263