etm: prevent segfault when reading bogus information