For embedded images which are compressed, suggestFileExtension() throws a NullPointerException because the content has not been initialised.
Created attachment 19611 [details] Fix to populate the content before checking if the image is WMF or EMF
Thanks for this patch. I've applied it, and knocked up a quick unit test to make sure we're now doing it all correctly.