Fix crash trying to select text in an empty page
Merge pull request #470 from thotypous/fix-box-empty-page

Fix crash trying to select text in an empty page