[settings] Avoid returning uninitialised data on error in fetch_xxx_setting()