getMediaFormat should return UNKNOWN if the url is null or if the contentSize is 0. Fixes #590.