Silenced error message when license fails to load

Also includes some refactoring that will be cherry-picked into master (specifically, 2beed01581b3276530ed7fd01bace4598b63d850).