diff --git a/core/modules/toolbar/js/views/ToolbarAuralView.js b/core/modules/toolbar/js/views/ToolbarAuralView.js
index f46bd86..d6a17be 100644
--- a/core/modules/toolbar/js/views/ToolbarAuralView.js
+++ b/core/modules/toolbar/js/views/ToolbarAuralView.js
@@ -43,14 +43,15 @@
      *   The new value of the tray attribute in the model.
      */
     onActiveTrayChange: function (model, tray) {
-      var relevantTray = (tray === null) ? model.previous('activeTray') : tray;
-      var trayName = relevantTray.querySelector('.toolbar-tray-name').textContent;
-      var text;
-      if (tray === null) {
-        text = Drupal.t('Tray "@tray" closed.', { '@tray': trayName });
-      }
-      else {
-        text = Drupal.t('Tray "@tray" opened.', { '@tray': trayName });
+      var relevantTray = (tray === null) ? model.previous('activeTray') : tray,
+        trayNameElement = relevantTray.querySelector('.toolbar-tray-name'),
+        action = tray === null ? Drupal.t('closed') : Drupal.t('opened'),
+        text;
+      if (trayNameElement !== null) {
+        var trayName = trayNameElement.textContent;
+        text = Drupal.t('Tray "@tray" @action.', {'@tray': trayName, '@action': action});
+      } else {
+        text = Drupal.t('Tray @action.', {'@action': action});
       }
       Drupal.announce(text);
     }
