msxml3: Add a helper to check that lexical handler is set.