Whenever it appears that the process is regular on its face and is issued by competent authority, a sheriff or other ministerial officer is justified in the execution of the same, whatever may be the defect in the proceeding on which it was issued.