When an assoc list has no value for an element:
(set 'lst '((a 1) (b 2) (c)))
...lookup returns the value of the key, rather than nil. While this is not a strictly formed association list, it should still return nil, especially since the xml functions write lists that way.