Compatibility of the Geometric Hecke Correspondence with the Classical $q$-Expansion Formula