mod_register_json: optimize, don't generate UUIDs when not needed.