Yes, I tested TIMOB-4814 without this piece of code and the test case still works fine. Will add this ticket to the FR.