I’m having this issue as well after updating 5.7.10 to the latest 5.8.7.
Following Pacart’s advice I’ve added a presence check before calling $parent[‘key’] or $parent[‘id’] respectively and it seems to have solved the issue. Will the fix be included in any update soon?