Fixed crash when adding activity with empty fields