fixes bug when modifying the category of a topic but cancelling the edit
Merge pull request #450 from ZogStriP/fixes-category-bug-on-cancel

fixes bug when modifying the category of a topic but cancelling the edit