[ticket/12570] Fetch the configs before updating, so we know which exist

PHPBB3-12570