engine: don't panic if TTL <= 0

Fix #933