added check for None tdim, caused by malformed tdim in header