MDL-54672 behat: Fix i_enrol_user_as() step in non-js sessions