Catch assertion errors for remove highlighter.