returning null in memory adapter when no item by id was found