Fixed default category bug on edit

Fixes a bug where the default category is lost when editing a post and category selection by the user is disabled