Fix DPL fatal error in tasks
Merge pull request #5741 from Wikia/fix-dpl-fatal-errors

PLATFORM-644: Fix DPL fatal error in tasks