Fix worthless assertion failure (sValueName != "") and give a meaningful error.