FileBrowser: Add try with resources to MimeType input stream