Remove obsolete InvalidError exception.