Fix new namespace at index 0

Setting a new namespace would fail if its index was 0, but the page would have been set to -1 if the namespace did not exist.