Issue #294, gracefully handle nil object in I18n.localize.