Don't count cancelled/rejected classes in "taught time"

The code was sometimes preventing teachers from registering new classes
when some of their other classes are cancelled.  The solution is to not
count the rejected/cancelled classes when computing the number of hours
the user is teaching.  Thanks to Ted Hwa for figuring this out.