BPP-9691: Fixed failure when StaticDateCalendarDetector encountered primitive field

Signed-off-by: Piotr Findeisen <piotr.findeisen@syncron.com>