Fix a crashing bug in checkmate recognition.