MT#6459 Fix peering contract and peer auth pref.

- Properly call localization functions on error when changing
peering contract.
- Properly handle preference update in case of empty value.

Reported by Marc Storck on spce-users.