Fixed some NPE's during calendar to date conversion

Signed-off-by: daniel <daniel@paladin234-lm>