Python driver: do not fail when reading past the end of a cursor