Fix crash resulting from frames with invalid data pointers.