Fix underflow in char_range_at_reverse

Added char_range_at_reverse underflow test
auto merge of #5611 : Kimundi/rust/incoming, r=catamorphism