Fix Sharing::fetch_incidents_set_params() modifications when media param is set but empty

Only trigger modifications if media is non-empty
Remove trailing spaces