The original code does not set `nodeLinkFn.transclude` only if `!hasTransclude && templateDirective`.