cupid: Fix bug that could cause a noise estimate of NaN to be used

This bug only seems to occur though when running findback from orac-dr or icl.