Yeah, ```QgsVectorDataProvider.uniqueValues()``` is returning a ```PyQt4.QtCore.QPyNullVariant``` object when it encounters a ```NULL``` value.