Fixed: null value in 'categories' causing problem while validating