I think it might be the right thing to always add class jstree-closed if it wasn't explicitely open before.