Fixed failure of nonexisting task in history