HHH-5744 check ResultSet#hasNext in GUIDGenerator