Cheryl and Simon Cowell once went years without speaking, but let bygones be bygones on the day of Liam Payne's funeral