Don't import a null module constructor.

This fixes a crash when validating a module that has no default constructor.  This should also be covered by an integration test.