MDL-45769 behat: Catch exception if failed to take snapshot