1.0.3dev: fixed raising `IntegrityError` when syncing empty and cached git repository (closes #11851)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@13436 af82e41b-90c4-0310-8c96-b1721e28e2e2