Prevent disable crash

See https://github.com/amsul/pickadate.js/issues/351