Fixed LocalJumpError: unexpected return

When using reserve_number! on an object and then try to save it, it gives LocalJumpError: unexpected return error.

I think the issue is related to this one on rails repo:
rails/rails#12981
and this pull request on rails repo too:
rails/rails#13271