Improves handling of an edge case in RangeContext.formatStyle()