Fixed tasks stuck on no materials/no storage queue.

If no path is available to a storage or an item, they'll be put into no
storage/no mats. If the map changes and a path opens up, these tasks are
still considered failed. This change will re-add them to the pool on a
map change.