fix a little bug in star detection module
 (if altitude<0, dont calculate airmass)