Avoid undefined index when not tracking memory data.
Merge pull request #3 from mrubinsk/undefined_mem

Avoid undefined index when not tracking memory data.