Fix the bug when creating hierarchy view.

There was the bug that if the class has no filepath, creating hierarchy
view raises a exception.
Check if nothing is selected in the class panel.

If nothing is selected, index is -1.
Check if there's no symbol after the tree loaded.

When there's no symbol, run the command with the 'no_symbol' argument.