Should also throw a MultipleObjectsReturnedException, see https://github.com/owncloud/apps/blob/appframework-js/appframework/db/mapper.php#L61

I missed to add this in the apptemplate