If an ELSE token is both an opener and closer, but it is followed by an IF, the scope_condition will be unset to allow it to act as an opener, but the condition will never be set again. So added a sanity check for this case.