Don't use classes from modules until all modules are successfully enabled
Merge pull request #525 from lenton/3.4/bugfix/module-classes-reliance

Don't use classes from modules until all modules are successfully enabled