add null ptr check in ph_string_equal_cstr

See https://github.com/facebook/libphenom/issues/29 for context