LPS-42444 Fix input stream leak in MimeTypesImpl

Hi Migue,

I'm sending this to you because you were involved in LPS-29626 and this kind of relates to that. As Daniel correctly stated in that LPS, the TikaInputStream internally creates a new input stream when getFile() is closed. However we still need to close this new stream that is now represented by the returned TikaInputStream.

There is a related issue here I will create a new ticket for, namely that because in LPS-29626 we protected the input stream by wrapping it in CloseShieldInputStream, the TikaInputStream will not be able to automatically close it when it creates the new internal input stream, so we need to make sure it is correctly closed on our side.

Cheers,
Zsolt