When we call the Content.migrate method with the argument synchonizeLiveWorkspace to true and the live workspace does not exist, the script can fail with the following error:
java.lang.NullPointerException: Cannot invoke "javax.jcr.Session.getNodeByIdentifier(String)" because "liveSession" is null
We should not call this method if the live session is null.
It can appear on some automatic migrations when we have deleted the live workspace manually.