Fix crash when line numbers and indent guide are hidden