Handle additional prep/cast failure cases in "predict_script.rb"