[behat] Small fixes to the BaseContext class