The Labour leader visited a church on Good Friday but says he was unaware of its beliefs on LGBT+ rights.