[Coverity] Fix control flow issue
[Coverity] Fix control flow issue

Resolves: LE-7875
Related: LE-7493
Change-Id: I465e04e5aa023a5e57d1a1c55a580c3fed75a765

legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af