See failing testcase:
https://github.com/camunda/camunda-bpm-platform/commit/f9f9f1e0398b5f18da43b094923b2cd2051c6c2d
See PvmAtomicOperationDeleteCascadeFireActivityEnd#getScope(): the implementation does not take the transition into account (when activity == null) to retrieve the correct scope