The rug pulled from under them: UKIP and the Greens in 2017