prevent rack from chocking on malformed mimetyoe