Improved error checking for mkcouchdb and rmcouchdb tasks.