Fixed an NPE in offsetToScreenSpace()

Fixes #27