prevent index errors if no name is given when setting a plot name.