Fix loss of htmlClass (e.g. highlight) for graph rects with zero scale