Raise for non-existent injections.

If a non-existent injection is passed to worker_factory, raise
and exception instead of ignoring it.