Collapse preceding slashes before createInternal

the admin panel doubles slashes, so collapse them here; makes sense, happens from time to time, and should not be used like in xpath, shouldnt it?