Pretty sure this is just a security issue.
Make sure that you are authenticating on the server and that the signer of the xpage has access to read the name and address book.
It does not work running locally.
I just copied and pasted you code into a computed field on an xpage on my server and it worked fine.
Paul T. Calhoun