Adds check if last_match is nil.