Add error checking in MemoryTable, motivated by a bug fix in MemoryStoreSinkOperator.