Protect against invalid package sources
Language-level demodularizer.