[Debug] fix ErrorHandlerTest when context is not an array