The failure of any agency to hold an adjudication hearing before the expiration of a license shall not terminate the request for a hearing and shall not invalidate any order entered by the agency after holding the hearing. If during or after such hearing but before the issuance of an order the existing license shall expire the adjudicatory agency shall in its order in favor of the affected party provide that the licensing authority shall renew the license upon payment of the fee prescribed by law for the renewal of the license.