Being less strict about invalid modules (to be consistent with the Magento core)