Fix error when retracting analysis from a worksheet

The system throws an 'AttributeError: guard_retract_transition'
exception after initializing the new analysis cloned from
the one to be retracted.