fix problem where removing package for which no data is defined anywhere causes segfault