[rubygems/rubygems] Fix error handling of #with_engine_version
https://github.com/rubygems/rubygems/commit/f38cd67874
[rubygems/rubygems] Fix error handling of #with_engine_version
another one due to variables being unset and hiding the real cause.
https://github.com/rubygems/rubygems/commit/f38cd67874