Fix division-by-zero if there are no components available at all
Fix division-by-zero if there are no components available at all

This pretty much never happens on "normal" machines, but may be a thing
in empty chroots with special settings.

ximion/appstream,ximion/appstream,ximion/appstream,ximion/appstream