tickets/DM-199: Develop new master-worker result system

Problems like this (and the next) should ideally be caught by unit tests, not code review.