Restores the ability to calculate a text's visual bounds.
Fixes an NPE in Text Areas under JavaFX 8.