Making sure exceptions during license initalization doesn't abort startup

Fixes #2058
Merge branch 'hotfix-4.5.1' into develop