Fixes KeyError when document language was an empty string

This happened when the document mimetype was not recognized by the extractor
worker in the backend.