Fix an undefined dereference issue when the calendar is opened from an empty input and arrow keys are used.
Fix an undefined dereference issue when the calendar is opened from an empty input and arrow keys are used.

Rudeg/react-input-calendar,Rudeg/react-input-calendar