Check if frame is a dead object before accessing it's attributes.