Fixing Cannot read property 'id' of undefined issue

This isn't a full fix as what it does is let kue bypass broken records.
Merge pull request #239 from michikono/patch-2

Fixing Cannot read property 'id' of undefined issue