[BUGFIX] Fixed bug of error when trying to compile a directive without templateUrl property