Strict standards fix and DRY function.
Update thumbnail when card is updated via CardDAV. Refs owncloud/contacts#120