using EM with no prior, sometimes Z has zeros

make sure that 0/0=0 for the normalization steps for Z.