TASK_PRIORITIZATION fails when CONTINUOUS_INTEGRATION is selected as the throw away card, if the player has less than 2 of the latter in hand.
Replay with the issue:
Screenshot of the viewer:
Pull request for the fix: