fix(DirectiveInjector): fix exceptions