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