fix crash when CSS widows are specified

ported from the following commit in Webkit:
http://trac.webkit.org/changeset/141009