Fixed issue where the id of the activity object was undefined in case of a discussion,...