gallery-clearing: Move clearing from inner to wrapper

VisualEditor measures the bounding box of an element for drawing focus highlights. When a gallery is beside floated content (infoboxes, thumbs), the contents of the media-gallery-inner clears the float, but the outer edia-gallery-wrapper does not. This causes a very large highlight to be drawn.