Don't crash when clearing projects while restoring