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