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