My religious instruction is from Lubavitch Hassidic Jews and I was taught that it is your actions that make you a good servant of God. Keeping the 613 (is that how many there are) Mitzvahs and so forth. The quote you pointed out refers seems to refer to God judging a person's (possibly wrong) actions by his intentions (heart). That's just my quick take anyway.
"The quote you pointed out refers seems to refer to God judging a person's (possibly wrong) actions by his intentions (heart). That's just my quick take anyway." Or, it could mean that it is the heart that produces the actions. Actions done solely out of ritual with no heart-change are clearly meaningless.
Jeremiah 9:8 - "Their tongue is a deadly arrow; it speaks with deceit. With his mouth each speaks cordially to his neighbor, but in his heart he sets a trap for him."