XWIKI-6195: Section editing fails to edit the correct section under some circumstances