The FileWriterSelector will only check the first available mime-type for a given extension. If that mime-type does not have a writer which supports the basedata trying to be written an error is given.
This could be fixed by iterating over all available mime-types instead of just using the first one.