The singer dedicated a live performance of the song to Liam Payne following his death