fix close dialog button of calendar import
proper handling of invalid objects