Changes to support offscreen rendering in IE8

Added checks for existence of currentStyle (won't exist on hidden
elements). Added > 0 checks for some widths that were being calculated
as negative (hidden elements).