added check for zeros in densities for DKL