Fixed a bug when POSTing what=mkdir with no name