added check on null dossier_id in fetching of activities