Fix Docker handler for machines that use systemd just as a naming service

Fix Docker handler for machines that use systemd just as a naming service without controlling cgroups.
Sorry, got confused as I moved the code around :) fixed.