fixing a bug in generating graphs which contains file entities with null attributes