Fixed a way of crashing servers

Thanks to Raveo for reporting this problem
apparently R:insert* was supposed to return something

so here, it now returns the value's default if the index is out of
bounds