Fixed NPE in highlight for large contents.