Fixes bug in SparseConstantValue when domain is 0