Check if logger isn't nil

When we got config.action_controller.logger set to nil to prevent logging we get error 
```ruby
undefined method `info' for nil:NilClass
```
which is caused by 
```ruby
def log_pdf_creation
  logger.info '*'*15 + 'WICKED' + '*'*15
end
```