data tree BUGFIX do not call function with invalid arguments
data tree BUGFIX do not call function with invalid arguments

Fixes #527

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