INTEG-245: First comment is lost for deployed document

Problem analysis:
  - In the previous commit, if an activity is not created, we created and add a new comment. It's true for a deleted and restored document but not true for a new document

Fix description:
  - Add a condition to add comment only for restored document
Merge commit 'a80d5f2056e0e152b41760f72ad1eaedd2da71ff' into HEAD