Bug #3406 - Add null media type detection to mediatypes.js