[FIX] base_calendar: when searching on events, avoid getting an error if virtual_id=False and count=True