Nothing in this Article shall be construed to forbid or prevent the sale of alcoholic liquor according to the terms of a license theretofore regularly issued in good faith according to law until after the final disposition of the case wherein an election result, indicating that the sale of alcoholic liquor is prohibited, is contested. Any portion of a license fee which shall have been paid and which represents the unexpired period for which the license was issued after the sale at retail of alcoholic liquor has been prohibited in a political subdivision or precinct in which the premises described in such license is located shall be refunded. Nothing in this Article shall be construed to forbid or prevent the sale of alcoholic liquor by a railroad licensee on trains passing through prohibited territory.
235 ILCS 5/9-18