On a new installation, "Preferences" crashes

On a new (Linux?) installation, if no sound output is enabled, opening "Preferences" crashes.

In mscore/preferences.cpp, mscore/musescore.cpp, mscore/scoreview.cpp seq is accessed but set to 0.

Added some safeguard checks.

(Same for master as another recent patch for qt5)