Fixed device page sometimes not loading

Added missing condition to check for media[‘audio’] in device doc