Fix race condition with parsing values

Closes bug 67393.