Preserve parent relationship when re-activating expired plan

When extending a plan-log row it’s fine, but if expired and re-activating the insertion should use the previous parent if there was one.

https://lists.sr.ht/~singpolyma/dev/patches/35283