OpenMRS crashes irrecoverably if particular errors occur during module loading  - TRUNK-2850

https://tickets.openmrs.org/browse/TRUNK-2850