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

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