Heat the olive oil in a small saucepan over medium heat. Add the onion and garlic, and cook for 3 minutes, until soft. Add the tomatoes, thyme sprig, salt, and pepper, and simmer for 20 minutes. Remove from the heat. Stir in the extra-virgin olive oil, discard the thyme sprig, and set aside until ready to use.