Replace settings.setting with settings.settingWithDefault

For normal projects it should be identical, but the old behavior would fail for source dependencies since the values would be undefined.