Fix a crash in res_musiconhold when using cached realtime moh.