fix possible fatal error in wiki matches (thanks, unit tests!)