Guard cursorTo

It seems to be undefined in some environments. As this method isn't critical to a program functioning, but an undefined crash is, let's guard it.
Merge pull request #62 from dawsontoth/master

Guard cursorTo