Fix indexer crash when creating a workspace/mooc with 2 session