[backport-1.5]: MR "fix bug in sbom-operator unit" needs a 1.5.x backport

MR !8396 (merged) needs to be backported to 1.5.x