Add robustness to HTML table processor

Support tables with malformed class name or that contain
multiple classes.