fix(engine/scopeActivity): do not remember current activityInstanceId

This commit extends the hack around the execution tree structure which is not in sync with the activity instance concept:

The current activity instance will be only remembered if:

* the execution is a scope,
* the activity is a scope and
* the behavior of the activity is a CompositeActivityBehavior

related to CAM-1883