Fix getTaughtTime to exclude rejected sections of accepted classes

This was making it impossible for a user who somehow registered more hours of class than there were in the program, then had some sections cancelled, to view their classes (due to the availability module).