community/appstream: backport patch to fix compose screenshot generator

Downstream issue: alpine/infra/compose/appstream-generator#2
Upstream discussion: https://github.com/ximion/appstream/issues/395
8 jobs for !34411 with appstream-fixes in 12 minutes and 24 seconds (queued for 1 second)
merge request