Fix CascadeJob FlowDef NPE

This is in response to Wil Lu's post about an NPE error that I've also observed. I'm not sure if this is the best route to take, but this allows the CascadeJobs to run.