Handle NULL / nil in toOF() / toQt()