Merge "Prevent NPE when checking focused stage before root task is ready" into sc-v2-dev