fix(setLogicalName): Affect logical name only if not an empty string (refs #5254)

If the given logical name is an empty string, then the affectation is
silently bypassed.
Merge pull request #1379 from eguaj/3.2-A5254

fix(setLogicalName): Affect logical name only if not an empty string (closes #5254)