Check whether memdb record is None before trying to read its keys

In memdb table.__call__(), check whether record is None before trying to read its keys otherwise app crashes.