Fix #2342. Java::JavaLang::NullPointerException: org.jruby.RubyString.crypt(RubyString.java:2660)