Use start date as end date if end date not set

This was breaking the calendar widget, the json dates array was full of empty dates.