> In fact, there is another solution for the period duration:
I wouldn't quite call this a solution, rather a workaround. In my case I have non-programmers creating report templates (with some assistance). It would surely help if one didn't have to specify complex expressions in chart datasources.
> If both start date and end date are null, this could mean also a serious problem when the task was defined
Sure. Or it could be normal behavior of data source. Note that replacing nulls with two identical non-nulls (as in your alternative solution) is not correct at data source end, because at that point you don't know how template will be using the values. If it, for instance, just renders values in a text field, then null is clearly preferable to some arbitrary date.
My point is that templates are more for end users, while data source creation is more for programmers. JasperReports already makes templates somewhat permissive, by e.g. using script languages or having "render empty if null" property on text fields.