task.py compute extra check for keys and NoneType

See #3626
4 jobs for feature-s/3626-robust_compute_extra in 6 minutes and 45 seconds (queued for 1 second)