Handle running an invalid Task gracefully.