Issue #2831581 by bisonbleu: condition for printing links wrapper in node.tpl.php isn't working properly