Fix null value being returned as 'null' string

Once a null value is stored, it can't be retrieved correctly, since the code was interpreted as a string.