diff BUGFIX check boundaries when going through the list of matching nodes
diff BUGFIX check boundaries when going through the list of matching nodes

Fixes #240

PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang