If the court refuses to enter an order directing the county clerk to execute and deliver the tax deed, because of the failure of the purchaser to fulfill any of the above provisions, and if the purchaser, or his or her assignee has made a bona fide attempt to comply with the statutory requirements for the issuance of the tax deed, then upon application of the owner of the certificate of purchase the court shall declare the sale to be a sale in error.
35 ILCS 200/22-50