fix not-null constraint violation in ActivityDataTable::updateActivity() (fixes #3399, BP from #3202)

(cherry picked from commit ae0f61b485afabdeac7a17c4c174c67eb93be789)