Make timelines compatible to PEs with dates missing.

This makes the timelines javascript code compatible to PEs where the start or end date may be missing.
For testing one needs to either
a) change things inside of the database
b) change this script to delete pe data (see e94a8d3 for an exmaple)
c) change the returned data in rails somehow