Added temporary variable to publicCats

This allows undefined categories to be filtered out.