fixed warning if html file has no text after tag removal