Return errors when lucene fails. Issue: medic/medic-webapp#652