Calendar: Also check for shared calendars when editing. Fix #828