don't set instance variable for error object when body is nil