Added checks for AudioContext.