Raise exception if expected match ID is nil