Don't descend into handlesOwnChildren nodes in selectNodes

Otherwise bad things will happen, like applying format actions
to image captions.

Bug: 60969
Change-Id: I44f010b7450f2c2ebfe86114717908783fb8a88c
Merge "Don't descend into handlesOwnChildren nodes in selectNodes"