     # Obsolete since 1.1.0, functionality has been removed.
     toolbarstyle:          no
     trim:                  rendered (text) ->
-      text.trim()
+      text?.trim()
     trimleft:              rendered (text) ->
-      text.trimLeft()
+      text?.trimLeft()
     trimright:             rendered (text) ->
-      text.trimRight()
+      text?.trimRight()
     unescape:              rendered (text) ->
       _.unescape text
     uppercase:             rendered (text) ->
-      text.toUpperCase()
+      text?.toUpperCase()
     url:                   url.attr 'source'
     version:               ext.version
     wordcount:             rendered (text) ->
+      return unless text
+
       # Oddly, this is the optimal method to calculate the word count on WebKit browsers.
       count   = 0
       text    = text.trim()

    originalurl:           tab.url
    os:                    operatingSystem
    param:                 rendered (text) ->
      url.param text
    params:                nullIfEmpty url.param()
    plugins:               _.chain(navigator.plugins).pluck('name').uniq().value()
    popular:               $.extend yes, {}, _.findWhere ext.templates, key: stats.popular
    screenheight:          screen.height
    screenwidth:           screen.width
    segment:               rendered (text) ->
      url.segment parseInt text, 10
    segments:              url.segment()
    select:                ->
      getCallback 'select'

    text:                  ->
      getFromPage @html, 'text'
    tidy:                  rendered (text) ->
      if text then text.replace(/([ \t]+)/g, ' ').trim()
    title:                 ctab.title or url.attr 'source'
    toolbarclose:          toolbar.close
    # Deprecated since 1.0.0, use the inverse of `toolbarpopup` instead.
