Pyramid: fix missing user object in state in `update_note` view