Wrong did and has happen here in Australia
Citation please because if it was as you stated then there is an immediate appeal provision; that the judge erred in law.
On you stated facts the appeal would succeed on religious grounds. That is when the appeal judge reads the appeal papers and goes, "Geezus Keerist!"