Fix error when first saving SSO options

Fixes #1031