Fixing syntax and behavior from previous commit

Referring to minor mistakes pointed out in
Commit: 9e1c45d0bfc2f75df24697d537b03dc1b3519e3f
There were also some bad traces that could have potentially been missed
in previous commit.

Bug: 37754950
Test: art/tools/runtime_memusage/sanitizer_logcat_analysis.sh
[LOGCAT_FILE]

Change-Id: I6f403ebc949ef9b924a07f68043cae188c3936b1
2 files changed