Added some error checking for orders with a lot of telluric absorption, where the model is often at 0. Hopefully this works better...