Fix NPE when current_user is nil. Fixes #146