Fixing bug preventing Drupal attributes, including #states, from being added to duration field HTML