Hopefully prevent potential (race condition?)  NPE in osmium compressor.