Don't crash if NameCompare or TtfNameCompare are passed null pointers.

If NameCompare() or TtfNameCompare() is passed a null pointer for either name1 or name2, set it to the empty string before calling strcmp().  The behavior of strcmp() is undefined if passed a null pointer, and at least on OS X, it causes a segfault.