Fix lists returned by fetchall() not being treated as 'not set'