-- Fixed bug in editing which would hang if no mimetype was found.