Added error checking for uninitialized ZPar environment