When any process or warrant is bad in law by reason of some defect in substance or in form apparent on the face of it, a person who, in good faith and believing that it is good in law, acts in the execution of the process or warrant, is not criminally responsible for anything done in such execution to any greater extent than if the process or warrant were good in law.