Fixes corner case where an uncorrected range is passed to addMarkup