fixes issue #1 where a package might have been defined without a category and breaks package processing