fix(directive-injector): wrong variable name in error thrown.

Add proper type annotation that would have caught the typo.