Bugfix - if the user can't view the current node, $variables['node'] is undefined and errors ensure.  Guard against it.
Fix viewing permissions for non-admins, as per http://drupal.stackexchange.com/questions/20086/hook-not-getting-called-image-title-module