handle invalid category errors (bug 870489)