Actually put the tasks in the tasksByPlugin Multimap (Fixes #1278)