Bug fixed with event creation

- Previous commit unsetting new attribute IDs breaks if no attributes
present -> fixed