Fix cryptic errors when tests_json_path is missing ref_config

sadly, json.dumps(None) evaluates to the string 'null', which drives things nuts
ya, i agree, that's much clearer.