Issue 5288 roles page tree disappears on clicking clear button

Fixed the issue.

Please check