Fix exception at location.real_column in the JSON formatter

We have defined `Rubocop::Cop::Location#real_column`, but most cases the location attribute value of `Offence` is actually `Parser::Source::Range` and it does not respond to `#real_column`.

Though I think we should handle the location attribute in a better way later, this is a quick fix for now.