Fixed issue with Cabinet text editor opening empty files.