Only assign IDs to stores that exist