core/strings: don't dereference NULL pointers in uwsgi_strncmp

Don't pass NULL pointers down to memcmp.

Reported by Coverity as CID #1010085.