Added a check to make sure nodeState is an object before we save the
student work.