Added check for <error> element in OAI response