Fix for [ENG-4400](https://linear.app/comm/issue/ENG-4400/media-elements-lose-min-height-property).
This diff fixes the issue when the rendered height of the image (or video) is less than 50px. In such cases, the image doesn't cover the container completely,
resulting in the absence of borders.
Depends on D8483, because this issue is created by [ENG-4371](https://linear.app/comm/issue/ENG-4371/short-images-get-stretched-on-web) fix.