Topological nature of the Kondo insulator SmB6 and its sensitiveness to Sm vacancy