What's the calendar package using ad_conn for?
I think that for user_id, it's okay to return 0 as in "no user logged in" when there's no connection. For other things, like package_key, package_id, etc., I'd bomb.
/Lars