Fixes 404 error when trying to add scan agent tasks.