Instead of setting addon variables to None (which causes issues),
fix the root cause by removing unnecessary module-level initialization:
- Remove module-level user_details loading in functions.py
- Load user_details locally in functions where actually needed
- Wrap remaining module-level addon access in try/except in:
- service.py (log_timing_data)
- default.py (log_timing_data)
- kodi_utils.py (addon variable)
- functions.py (__addon__ and related variables)
This prevents crashes during installation/update while avoiding
None-related issues during normal operation.