Getting Notices when adding new categories

When adding new category, I noticed that I was getting a Notice on my PHP log.
The notice was because the publish_id field did not have any value.
So adding a default value to 1, will point the parent id category to root, what normally wood and the notice will stop