Fixed Use of uninitialized value at OutofOffice setting in AgentPreferences.
This fixes #9488.