Fixed issue with chart generation where there are no published records