Fix trip planning bug, needs to be serialized before trying to save. [Fixes #66351494]