Fix for issue #309, IE8 doesn't like undefined as param 'to' for [].slice