Added compatibility with use of transclude in directive