Trying a brute-force approach to preventing the infamous PyQt SEGFAULT on
exit...  Cannot reproduce such a crash in about 10 attempts now...
(it was more annoying than anything else, no data corruption, etc...)
Fix a potential division-by-zero error if exactly one note was selected
in the piano roll.