Do you see an error message in your logfiles from the
x.setoutfit(ofprop)
line??
The only reason I can see for your first debug to appear, but not your second, is that the script is actually aborting on that middle line ... which should be reported in your log files?