Fixed bug that prevents the activity list from crashing when deleting an activity.