Fix PR1938 by forcing the code that uses an undefined value to branch one