fix issue 1054: ignore invalid media types