Fix Record.add for creating new record

Record was created but not added.  Fixes #2864