Don't crash if NameCompare or TtfNameCompare are passed null pointers.
Merge pull request #1043 from blipvert/fixes/16

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