Fix the visualization and creation of empty solutions and basically empty trajectories
Solutions with 0 time steps or 0 DoF robots previously caused errors. Also, it was not possible to create a 0 time step trajectory. These features should be supported for the automatic creation of solutions -- so this MR implements these features.