Fix user creation and changing of startpage via REST API

The Startpage of a user might be `null` and it might contain `null`
values as `id` and `type` attributes (if the startpage is being reset).

Fixes #814