Update resque

To fix "Notice:  Undefined variable: logger"

I guess the condition should this one instead: if is not set OR (is set but) is not and object.