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.