Fix case when disabled apps could be missed in the backup.