Fix assert for a project in a non-existed git repository