Hmm... The amend is mine. Just strange I cannot reproduce it. What is the ZIP in your case (installed or minizip)? BTW I thought packing of empty dir in zip is impossible. I can extend it with check for empty dir (or possibly some zip-switch to ignore that).
Could you provide an exact error message of test too?