Updated configuration

I've modified the file so that it calls the
```php
AnnotationDriver::registerAnnotationClasses();
```
only if there was a document configured to use annotations.

Hope it helps.