Make double protection against ModuleMessage errors for db_services