Fixed a nullptr end-of-match bug.