Merge pull request #1043 from blipvert/fixes/16

Don't crash if NameCompare or TtfNameCompare are passed null pointers.
Merge branch 'fixes/15' into fixes/latest