Correct variable test here, too. Ticket #3662