Irish premier Enda Kenny has told Theresa May the outworking of the General Election must not put the Good Friday Agreement at risk.