Do not load avatar from cache if token is empty. Fixes bug #517098.