I believe you should add `$app->offsetExists('monolog.stacktrace')` or preferably provide a default value in the `MonologServiceProvider`.