The session CurrentUser is always an object in RT 4; check if it's loaded
Make sure to start with a fresh session before logging in the guest user
Allow public users access to the queues autocomplete endpoint

While I'm at it, use the configured NoAuth regexp as noted by a comment.
Mark distribution search inputs for autocomplete