Fix crash where a token was being treated as a string.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Fix tags being inputted when empty.

- If the user scrolled after tapping the insert new tag button a tag
would be added to the search without the user even having entered a
single character.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge branch 'master' of https://github.com/opfo/app

* 'master' of https://github.com/opfo/app:
  Cleanup and refractoring of some code
  Remove interaction from textfields in actitivy rows.
  Fix unsetting the eMail-Hash in user defaults on logout.
  UI improvement in storyboard