Fixed non-deterministic behavior related to mimetypes extension mapping and module reinitialization.