Not taking snapshot for empty workspace

If the workspace is empty, I skip the snapshot taking.