Fixed issue trying to process non html files