More liberal error catching when valueifying