Error out if prereq is not formed as a list, Fix #8235

Previously it would just traceback during the staterun.  Fixes #8235