Don't update the progressbar if the value is invalid

Should fix conda/conda-build#224.