Update lib/resque/tasks.rb

This fexes the problems with undefined classes when loading engines