Moved table row ID creation so that the ID will always be created if the row layout restarts. PR: 12876