[BUGFIX] Bug without templateUrl

Fixed a minor bug when the directive have the "template" property instead of templateUrl.
Gulp build crashs without that verification.

Thanks!

;)