Skip over nested handlesOwnChildren nodes in getRelativeOffset

By tracking depth instead of a boolean (as we do in ve.dm.Transaction).

Bug: 66604
Change-Id: Icad32a7cc25f006bc9c56519e9e3e6309e82bcfd
Merge "Skip over nested handlesOwnChildren nodes in getRelativeOffset"