Remove unnecessary check in whitespace handler