Fixed behaviour when ldap lookup fails

Firstly, instID was missing (this caused the soy template to crash).
Secondly, four of the elements are supposed to be lists.  If you pass a string instead then the template iterates over each character ;-(