Fix crash finding earliest result with empty tables.