Only create markers when necessary

Test Plan:
Toggled show highlighting and show gutters on and off and things still render.