test for empty DictionaryProbDist before normalization, to prevent dividy-by-zero error; resolves issue 309