Fix Item::patchSiteLinks

The `'badges'` array key is not guaranteed to be set because of the way the diff algorithm in `EditEntity::fixEditConflict` works.

This fixes the same bug as #179 but does not invalidate the other patch. I suggest to merge both.