Issue #1566878 by hanoii, csandanov, claudinec, Georgique: Term parent value missing on submit when another term added as parent and <root> is removed