Fix bug in settings migration code

- Was ignoring version in settings without a 'version' key