Correct the logic of le_port_GetPortReference API
Correct the logic of le_port_GetPortReference API

Resolves: LE-9452
Change-Id: I766f8a1fa40b6518148066eaf86d556dda6b277a

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