fixes #4026 Cut and Paste of folder with Document file type not pasting

Fixed the issue and pushed the code for review, please check it.