Is there a reason this is checking if min/maxMonth isNan? As far as I can tell, the `config` function checks the min and max dates are valid dates before extracting the min and max months.  I think minMonth and maxMonth should be defaulted to 0 and 11 instead of undefined, however.