Fix crash in colorbar if 2d dataset does not exist