avcodec/aacdec_template: Clear tns present flag on error