fix(setLogicalName): Change test of $name variable in FREEDOM:SETLOGICALNAME (fixes #5254)