Correcting MemoryAdapter#delete method

In cases in which the entity has an `identity` other than :id, the
memory adapter would fail deleting the record because :id was
undefined.