fix($compile): replace/templateUrl transclude issue

See #7183