Fix a bug in R.skip

Calling `R.skip(n, list)` for `n >= list.length` would result in an error being thrown. Instead,
this commit causes an empty array to be returned.
Merge pull request #340 from markprzepiora/fix-skip-bug

Fix a bug in R.skip