replaced infs and rankwarnings

np.polyfit rank warnings no longer pop up and infs caused by dividing
by zero for poor ThAr continuum fits are replaced with zeroes