check for id in instance for conflict detection

Just check if there is a directives.id, otherwise the error will prevent saving if there are links to be resolved. The resolving get needs an id.