A 60-year-old man who was sentenced to five years in jail after getting caught in bed with an 11-year-old girl has had his conviction tossed out after his victim told the court she was in love with him.