fix respond_to? incompatibility with protected methods on ruby 2.0.0