Fix undefined object when user is a guest

Issue #55: Fix undefined object when user is a guest