Fix several bug that if no current exception or category
Now no problem happen even switch to empty project
Fix the bug that it always post state-change request if category was changed