MDL-40975 Behat: Fix test failure with block menus