Rescue ArgumentError on JRuby when trying to extend existing modules.