Fix EZP-20434: Do not try to delete binary files with empty path

Follow up to 1218b113709fe44c54022f91400c741c71cbd189.


@bdunogier Please review :)