GPII-1001: Avoid the use of JSON.stringify when writing the file

and avoiding the corruption of orca's settings file when dealing
with non-existant requested settings.