Fixed dereferencing null when resetting to default style with {\r}.