Make sure tab is opened before selecting it

Ticket:	#3414