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