I would like to put the following into a list. However, it seems that once the optional timestart/timeend elements are missing the program throws a NullReferenceException an