mimetype.guess_type() returns a tuple, and it might be (None, None).