Fix for JRuby 1.7.4 in 1.9 mode

JRuby 1.7.4 in 1.9 mode is falsely reporting `defined?(::BasicObject) => nil` see jruby/jruby#814