The referendum mess may tempt the government to stop encouraging direct democracy. They should fix it rather than dump it.