improved error handling on missing calendar ids