CS-5899 [Calendar] Invalid URL in invitation mail for a space's event

Fix description:
- Only update url in case of intranet context in function getCalendarURL.
- Update base URL in function getReplyInvitationLink to correct case when domain URL is undefined.