Adds some error checking on bad DOIs.