MDL-40033 behat: Ensuring filepicker finishes it's tasks