Fix issue where job would be marked done while some inputs were still being mapped.