SWF task was not found when it had no log messages

because last() throws an exception for an empty Collection