Fix case where DB gets populated with string None

There's a funny code path where there is a string 'None' here sometimes. This unbreaks it. I don't know the code around this very well, so a sanity check would be nice. @dianakhuang @flowerhack 
Would it make more sense to just try the `int(...)`, and then catch the error if that fails, and warn on that?