Fix a case where an error could be raised inside a keeper state