Minor tweaks to the code:

• Only call MediaCallback for media types (not pause, nor events)
• Check for existance of media in JSON data passed to the media callback.