Fixed a bug where frequencies/histogram would crash when all data had missing wieghts.