--- sites/all/modules/token/token_node.inc	2009-05-14 12:09:15.000000000 -0400
+++ sites/all/modules/token/token_nodeNew.inc	2009-09-29 11:22:49.000000000 -0400
@@ -35,6 +35,13 @@ function node_token_values($type, $objec
       $values['author-name-raw']  = $account->name;
       $values['author-mail']      = check_plain($account->mail);
       $values['author-mail-raw']  = $account->mail;
+	  
+	  // If author name is empty, set it to anonymous
+	  if (empty($account->name)) {
+		$values['author-name']  = "Anonymous";
+		$values['author-name-raw'] = "Anonymous";
+	  }
+	  
       if (isset($node->created)) {
         $date = (int)$node->created;
         $values['yyyy']           = date('Y', $date);
