fix possible NullPointerException in UtliFile

Could happen if folder is empty