MDL-42393 calendar: Preventing open/close loop in events overlay