Fix(retrieveTask): Previously hit an error on null tasks