Merge pull request #3580 from RosettaCommons/roccomoretti/interactive_lua_bonus_filter
Foldit: Fix issue with Lua scripting and Condition Filters
With the filter re-write, attempting to use on a filter which is not a BonusFilter will result in a crash of Foldit as a whole. Update things such that it just raises an error within Lua itself. Additionally, add a function which will allow scripts to tell if a given filter will raise such an error when passed to GetBonus().
Release Notes:
* Lua: Fix filter.GetBonus() to raise an error rather than crashing when passed the Exploration filter.
* Lua: Add a filter.HasBonus() which returns true if filter.GetBonus() returns a value, false otherwise.