Added one more condition for #smd and default

This condition is to ignore the tasks that are marked done to be
returned.