make sure Rails logger is not nil