Update classifier.rb

total prob nil no longer crashes