exportlayers: Handle file formats more properly
exportlayers: Handle file formats more properly

This also displays the correct export error messages for unknown file formats (instead of the nondescript "procedure not found").

khalim19/gimp-plugin-export-layers,khalim19/gimp-plugin-export-layers