Fix getCompressionTypes() static method invocation

Under certain conditions (if loci_tools.jar is added during the internal call
to bfCheckJavaPath), calling the static method while constructing the
ImageWriter failed.