pothos-gui: additional JSON checks to avoid access errors