This fixes "Uncaught TypeError: Cannot read property 'keypath' of undefined" for me

I find it very hard to explain what this does. But in my complicated setup, I cannot use "unshift" without this fix. Unshift works on empty list, but as soon as tehre is something in it, I get the error.