Fix a ''Cannot operate on a closed cursor'' error happening after a repository sync in trac-admin.
Authored by: cboos 2010-03-30
Parent: [r9406]
Child: [r9408]