Fixed bug where deleting all of the steps and trying to add one crashed because there was no available predecessor