Check for Rake::Task before loading rake tasks

Because if `Rake` exists and `Rake::Task` not, loading of `docker/rake_task` crashes.