rescue load error for Gem loaded.

backport from https://github.com/ruby/ruby/commit/cc02a4ab7b71215de89c6bcfddc2fb2ef6f587be
Merge pull request #960 from hsbt/rescue-gem-loaderror

Rescue load error for Gem loaded.