Fix an issue where some attributes were not unset when unloading a style class.