Fix missing tree node check when using jsTree json_data plugin