Frontend: adding some more broad protection around the JSON parser for client settings