fix(DirectiveInjector): fix exceptions

Closes #1484