Index: /branches/release-35/lib/MT/Template/ContextHandlers.pm
===================================================================
--- /branches/release-35/lib/MT/Template/ContextHandlers.pm (revision 1956)
+++ /branches/release-35/lib/MT/Template/ContextHandlers.pm (revision 1958)
@@ -7221,8 +7221,8 @@
 
     # Get the current category
-    defined (my $cat = _get_category_context($ctx))
-        or return $ctx->error($ctx->errstr);
+    my $cat = _get_category_context($ctx);
+    return if !defined($cat) && defined($ctx->errstr);
     return '' if ($cat eq '');
-  
+
     # The category must have a parent, otherwise return empty string
     my $parent = $cat->parent_category or return '';
@@ -7251,5 +7251,5 @@
     return '' if ($cat eq '');
 
-    my $res;
+    my $res = '';
 
     # Put together the list of parent categories
