NaN in Firefox while entering incomplete year provided