Fixed NPE in No Whitespace After Check, issue #542

Fixed NPE.