           template = getTemplateWithShortcut request.data.key
       if data? and template? then runner.next() else runner.finish()
     catch error
+      log.error error
       # Oops! Something went wrong so we should probably let the user know.
       runner.finish
         message: i18n.get if error instanceof URIError

# The element should then be inserted in to the `ul` element in the popup page
# but is created here to optimize display times for the popup.
buildTemplate = (template) ->
  image = getImagePathForTemplate template, yes
  item  = $ '<li/>',
    'data-key':  template.key

    bitlyusername:         bitly.username
    browser:               browser.title
    browserversion:        browser.version
    # Deprecated since 1.0.0, use `menu` instead.
    contextmenu:           -> @menu
    cookiesenabled:        navigator.cookieEnabled
    count:                 stats.count
    customcount:           stats.customCount
    datetime:              -> (text, render) ->
      new Date().format(render(text) or undefined) ? ''
    decode:                -> (text, render) ->
      decodeURIComponent(render text) ? ''
    depth:                 screen.colorDepth
    # Deprecated since 1.0.0, use `anchorTarget` instead.
    doanchortarget:        -> @anchortarget
    # Deprecated since 1.0.0, use `anchorTitle` instead.
    doanchortitle:         -> @anchortitle
    encode:                -> (text, render) ->
      encodeURIComponent(render text) ? ''
    # Deprecated since 0.1.0.2, use `encode` instead.
    encoded:               -> encodeURIComponent @url
    favicon:               tab.favIconUrl
    fparam:                -> (text, render) ->
      url.fparam(render text) ? ''
    fparams:               nullIfEmpty url.fparam()
    fsegment:              -> (text, render) ->
      url.fsegment(parseInt render(text), 10) ? ''
    fsegments:             url.fsegment()
    googl:                 googl.enabled
    googlaccount:          ->
