Fix Ruby 2.0.0 compatibility

#respond_to? now exclude protected methods.