handle ROOTError (illegal number of points) when saving canvas