Backport owncloud/contacts#145