Prevent ImportErrors when AstropyLogger looks at sys.modules