Fixed removing a controller from a folder

According to js specs, the `slice` method doesn't change the original
array. Therefore, we have to reassign `__controllers` to
`this.__controllers` after slicing.