Don't assume $data['topic-title'] exists for every event

e.g. edit-title doesn't set topic-title

Change-Id: I5d3032b0d7ada6b025581b2971a8a4f53ec64891