Two Sinn Fein press officers have resigned after providing references for a former colleague later convicted of child sex offences.