1. fix timeTaken with appended line break issue
2. fix colorcode null pointer issue
[2233] admin activity timing info fails on staging server due to line break issue

fixes #2233