Bug 820538: Added media-ptr check because of NS_DISPATCH_SYNC. r=rjesup