ECMS-5313: Activity Stream crashes when delete uploaded file

Link issue: https://jira.exoplatform.org/browse/ECMS-5313
Fix description: In case upload file and share on the home activity, we'll consider that activity is file activity.