Error checking for graphing a nonexistent polynomial