KeyError does not exist in Ruby 1.8.7