CLC-4059: Changing the filter on activities triggers a JavaScript error

https://jira.ets.berkeley.edu/jira/browse/CLC-4059