fix check to not raise E_NOTICEs

Imagine this *invalid* configuration:

```yml
monolog:
    handlers:
        buffered:
            type: buffer
```

With the current implementation you get an ``E_NOTICE``: ``Notice: Undefined index: handler``