Adding checks to the alerts for student training.

Fix for ORA-728 and ORA-729 - Alert messages when there are no training examples and alerts when student training is disabled.

Now checking both scenarios before display an alert. Added tests accordingly. 

@wedaly @gradyward 
This is a case where it would be much cleaner to use the view directly, since there's already an `isEnabled()` method that does this.