Fix for NaN in Firefox while entering incomplete year provided