Fix datepicker when hidden through displayif or tabs