Fix: [ bug #1306 ] Fatal error when adding an external calendar