Fix crash when user is not logged in. Fixes #43
Version 1.0.4