Take empty workPid's into account