fix(child-directives): prevent loop in case directives compiled as attribute

Closes https://github.com/angular-ui/ui-select/issues/104

Working [plunker](http://plnkr.co/edit/6ngMDpBNyeTfRrmZp3uC?p=preview)