Corrected a bug when an object had no geometry