MediaEmbed: skip tests that can't be completed because of a failed HTTP request
JavaScript::encode(): improved type checking