more use of noGui in libmscore

protect some calls to QMessageBox() in libmscore by "if (!Mscore::noGui)", just like it is done in other places