Work around the implementation of QVariant::toString(), which does not return a null string for a null non-string QVariant