Don't allow registration of undefined factories.

container.register(fullName, undefined) now throws
an Exception. This is obviously much stricter then
the current approach, but an obvious win, as we
can detect obviously exceptional scenarios early.
Merge pull request #3414 from stefanpenner/dont-allow-undefined-container-registrations

Don't allow registration of undefined factories.