CRAFTERCMS-916

Fixed bug in rename process caused by changing content-as-folder and fixed bug in deployment engine that is sending folder path for delete even though it still has children.