Added unpulled JRuby 1.9 fix proposed by liveh20

* From https://github.com/liveh2o/foreman/commit/7ad41da59297e8b0816f719b77655175260a3428