Added sanity check to 3-argument module call.

Fixes errors encountered with angular-classy, and plausibly anything else that does not explicitly define dependencies.