[composer] Check if attribute index is valid when reading attribute table fields from pre 2.4 projects (refs #10482)