Fix error in using ast_channel_snapshot_type before initialization