Fix newly created event not saved because not marked as dirty

When creating an event from a text, mark it directly as dirty. This will
fix some issues with not saved events.
2 jobs for master in 5 minutes and 22 seconds (queued for 9 minutes and 25 seconds)