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