Fix return after branch to error.
Disallow JSON quoting characters in checkpoint names, it's not a good
idea.