Handle NULL id in TABLE_get(id) function