Only delete last char if there's one
Merge pull request #1104 from xschildw/PLFM-2604

Handle empty file