No more tasks bug

This fixes https://github.com/PyBossa/pybossa/issues/667 for the default scheduler (not any of the others, sorry)...