Fix for entities that do not have sync attribute

This is a fix when syncing a data model where some entities don't have a sync attribute. They should be ignored in the logic where setting syncID.