neuronstagingarea.js: fix error when removing a single skeleton

Turns out that, in javascript, Array.splice(undefined, 1) removes
the first element of an array instead of raising an error.