Resolves fdo#79273: Data Statistics crashes with any entry

Change-Id: I50b1a14e6bb9907f3a09e515dba28f9bed5511ea
(cherry picked from commit cb3dcb0b2ec1a7ecacb72ec1348010000163aa06)

Signed-off-by: Kohei Yoshida <kohei.yoshida@collabora.com>