fix for https://github.com/owncloud/contacts/issues/537

https://github.com/owncloud/contacts/issues/537