Bugfix that prevented the user from saving his preferences

Bugfix that prevented the user from saving his preferences. The default-calendar was never fetched correctly and the user got an error message whatever he chose.