fix javascript error due to missing avatar for guests