Control edit modal fix (#56157964)

Fixed the control edit modal so it doesn't crash when the control is not assigned to a Directive.