Created by: eseliger
This also fixes a second bug where imported changesets could not be detached after a failed import (eg. 404 error).
This screenshot shows that a changeset is not properly detached after it failed publishing: