refactor schedule to check error conditions

The schedule routine now correctly checks whether the workflow can be
scheduled.

	modified:   yerba/managers.py