* commit 'e495a5a3f3feec6319262a6bdab3b7704d6ab843': Before requerying a cursor, check if it is closed.