Fixed #20443 -- Import errors in settings cause confusing error messages