Fix JRuby throwing exception when remove_method called on non-existent method.

Fixes #732