When switching slot location while dnd, make sure the target location is a directory. Fixes bug 742766