fixed crash on undefined variables
Merge pull request #4 from gameclosure/fix-scrollto

fixed crash on undefined variables