fixes folder structure when zip contains empty folders

If an uploaded zip file contains empty directories, these directories are not turned into folders on the elgg system.  Additionally an empty folder with no title is created.
This fixes that behavior such that the final folder structure on the elgg system exactly matches that of the zip file.