patch for wrong error handling in 1D smooth

While working on `gbAnalysis`, I found an error in the 1D smooth function, that is currently not used in `plotRadiation`.

This patch corrects this mistake.