Fix DocumentNotFound error when accessing current_user (fixes #1)