Fix for fatal error when files exist for a module, but module is not installed in database.