Fixing bug causing empty categories to be imported