mshtml: Moved creating nsIFile to separated function.