Calendar: Error checking in generateEventOutput() Fix #621