Fix model-sync-local deletion issues

This fixes an issue where deleting an item does not properly update the list of available model ids on the root key.