Fix component detaching

Detach component only if they are not rendered in client