Properly fix iterating over empty tables in the in-memory driver.