Added workaround to avoid exceptions when the value in app.xaml is empty