Fix infinite loop on multiline tick text - #714