Catching ValueError in mark_dead

https://github.com/aparo/pyes/issues/277