It doesn’t …but it doesn’t hide it either
Is it wrapped in an element or by itself.
If it’s in a wrapper element, try hiding that instead.
Of course, you should really have a fallback image for these eventualities.
Alternatively, remove the dimensions from the SVG mark-up itself (width/height) and apply those with CSS instead.