Issue #3151980 by anmolgoyal74, huzooka, benjifisher, Wim Leers, quietone: System mail settings migration (d7_system_mail) assumes that the mail_system variable is always available (cherry picked from commit 36b600e4)