Fix exception trying to add a non-existing canvas