Make sure autodiscover_tasks is iterable.  Closes #1797