Adds an id to a match if the match is persistent and new