Bugfix: check Rails.logger presence

Rails.logger presence was not check (only Rails presence checked).
This caused problems if fetching the config inside the Application
configuration (no Rails logger set yet).