Corrected NullPointerException

In TimeRange(Date, Date) constructor