Rescue load error for Gem loaded.

It's backport from https://github.com/ruby/ruby/commit/cc02a4ab7b71215de89c6bcfddc2fb2ef6f587be