avoid error when trying to delete non-existing array element

@aphyr, so this was the error we talked about on IRC. It was (re)introduced by the revert you did (67335d6). Before this `Grid.prototype.remove` was dead code, from what I understood.