fixed NPE during text dragging
Merge pull request #4 from mrgrey/feature/text-drag-drop-fix

fixed NPE during text dragging