Hotfix for failing a failed task

Hotfix for #292 as recommended by @hjoliver.

Tested as fixing the crash bug.