Fix issue #37: row cache is not properly cleared if no frozen rows exist