disable avatar loading on public guest page

@Kondou-ger did you add the avatars code? Could you review this PR and verify that without it file uploads to public folders shared via link won't work? In chromium the js execution stops when trying to access a member on the user object that is passed in ... it is null. Don't know if this is the correct fix or if you would solve it differently.