TS-2091: Return an error from RecGetRecordOrderAndId if the stat isn't registered
TS-2091: Fix spacing in separate commit