Make parent Category 0 if not set and convert incoming ID to a NSNumber