MADS: Bugfix for sequence triggers

Fixes a lot of broken sequences
MADS: Check if a rect is sane before attempting to create it