bruce fixed a bug that the Value::null is not judged when the private and
lottery keys are not exist.