storage: added checks if read memory has been written or is unassigned