Check if there are actually steps, prevent javascript error.

There are some algorithms pushing out interaries without steps in the legs, such as the simplepathalgorithm. Without this patch, things break down.

This was breaking things on our instance on www.opentripplanner.nl/leaflet