Add safeguard for beat pattern wheelevent
Fix #963
Merge pull request #988 from diizy/stable-1.1

Add safeguard for beat pattern wheelevent