Check for defined object before calling isa

With the previous ordering, lookups that passed no object
errored when attempting the isa call. Add a name to the
whois form to make testing easier.

The isa call still runs the queue lookup code only on tickets
as noted in d58c1bad8c .
Pass and use object for MakeClicky instead of ticket

Update some remaining references from ticket to object.
See also d58c1bad8c .
Add tests for the Lookup.html page
Merge branch '3.2/makeclicky-on-lookup'