Index: trac/util/translation.py
===================================================================
--- trac/util/translation.py	(revision 7072)
+++ trac/util/translation.py	(working copy)
@@ -111,7 +111,8 @@
         return getattr(_current, 'translations', _null_translations)
 
     def deactivate():
-        del _current.translations
+        if hasattr(_current, 'translations'):
+            del _current.translations
 
     def get_available_locales():
         """Return a list of locale identifiers of the locales for which
