Correct logic when checking for null logFragment/listData for graphs