web: PropertyVar: toggleClass: catch errors