and while testing i realized we get undefined array indexes here too. is it sane to do this or should we error? if the parent changed its path in the same flush, we will not see this here, i fear.

then again, even the previous code might fail if the parent id change was not calculated yet.