But fix for issue #952

Does not include tests because the error is already trapped by logging (please see the ticket for more details). The fix is to make sure that the actual error is logged, and not a later error created by django-haystack.