Fixed bug in xyrange when asking for wavelength ranges that cover the CCD but extend off of it