(bug 55439) Fix an error when an image has an unknown media type

Change-Id: Ia133c004ca03e0a599eacbc81ff12409bbe7ff87
Merge "(bug 55439) Fix an error when an image has an unknown media type"