Refactor mrb_range_beg_len() func in range.c

Even if you do not use the goto statement, it is sufficient to use return statement.