Add another check to PopupMultiChoice

I had a weird crash where for some reason the ButtonPreference setting was bigger than the program expected. It makes sense to limit the setting in both directions.