Fixes bug where sometimes the aEndDate was null.

Signed-off-by: Michel <info@1st-setup.nl>