fix NPE in AtomicOperationActivityInstanceEnd