Whenever any application made to the Department of Motor Vehicles is accompanied by any fee as required by law and such application is refused or rejected, the fee shall be returned to the applicant. Whenever the Department, through error, collects any fee not required to be paid under this chapter or any amount over and above the required correct fee, such fee or amount shall be refunded to the person paying it upon the initiative of the Department or upon application therefor made within six months after the date of such payment or overpayment.