[libcontacts] Test strings for emptiness rather than null

When resolving addresses, there is no significance in the difference
between empty UID and null UID; correct the tests to remove the
possibility of caller error.
Merge pull request #79 from matthewvogt/test-string-emptiness

[libcontacts] Test strings for emptiness rather than null