MDL-42870 completion: show failed activities as incompleted
MDL-42870 completion: performance and readability code refactoring