Fixed issue with handling empty tab index on parent div