Fix bug in striping when html element had no text content