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.