Update sofia_pipeline.py

Added error handling for WCS conversion of coordinates. Code crashed if the header contained invalid keys.