properties: don't overwrite a GError and use real GError domains

Fixes warnings when importing connections.