Work around respond_to? behavior in JRuby 1.6.13

In JRuby 1.6.13 calling respond_to? with :method_missing returns false
even if method_missing is defined. This commit replaces the checks that
relied on respond_to? returning true in this case.