clean up on empty className attrib Co-authored-by: Alaister Young <alaister@users.noreply.github.com>