Bug 24244: Send null instead of empty string if branch not set