web: avoid using a cursor after the connection from which it depends has been rollbacked (as this doesn't work with PySqlite due to some explicit close on rollback we do).
Closes #9104.
Authored by: cboos 2010-03-08
Parent: [r9335]
Child: [r9337]