Fix logic bug.
Fix logic bug.

Refs #1482

Ventero/greasemonkey,HasClass0/greasemonkey,Martii/greasemonkey,Ventero/greasemonkey,the8472/greasemonkey,Martii/greasemonkey,the8472/greasemonkey,HasClass0/greasemonkey