NXP-12878: safer code when retrieving data attached to audio file