Minor fixes for https://github.com/openmicroscopy/bioformats/pull/747

This just fixes a couple of classpath issues and prevents an exception when saving files.