PMO-2815: fixed crash, when tab index is not correct.