There's really no need for a for loop here.

    var dragHandle = container.querySelector( ".ui-draggable-handle" );
    if ( dragHandle ) {
      container.removeChild( dragHandle );
    }