Fix indexing error with missing id

The model won't always have an 'id' property, but the 'result' object
will because it's been through the filter method which ensures it has
one.
If there is an error reindexing then print it

This error wasn't being logged anywhere before, which made it hard to
track down why some documents weren't reindexing properly.