Any offender in the custody of the Department of Corrections who is summoned to a county by court order for any post-conviction proceeding shall have such proceeding heard during the term of court in which the offender is returned to the custody of a county. If the offender’s case is not heard during such term of court, the offender shall be returned to the facility of the Department of Corrections from which he was summoned. If the offender is not returned within one (1) week of the end of the term of court, the county housing the offender shall not receive the Twenty Dollars ($20.00) allowed under Section 47-5-901 for housing state offenders after the one-week time required for returning the offender to the Department of Corrections.