Fix panic when node data is null