Get rid of / improve ugly NPE when Utils.deleteRecursively() fails

listFiles() could return null if the I/O fails, and this currently results in an ugly NPE which is hard to diagnose.