bugfix: when all styles are removed, return empty attribute (to be filtered out)