fixed an unhandled exception in ActiveSupport Cache