Fix crash on encountering empty text block #550
Merge branch 'od/issue_550' into develop