[v6r11] Fix toJSON() in RMS

Bug introduced in previous patch... should not be str(val) if not val (as this may result in "None")