Fixed the error when adding a sub category by hitting enter key. bugid:110218