On a new (Linux?) installation, if no sound output is enabled, opening "Preferences" crashes.

In mscore/preferences.cpp, seq is accessed but set to 0.

Added some safeguard checks.
Merge pull request #341 from mgavioli/qt5-preferences_crash_new_installation

QT5 - On a new installation, "Preferences" crashes