Steven MacMillan, who sent sexual messages to a 13-year-old girl, has lost his appeal against his sentence of 20 months.