In "Write Firmware", as long as a valid file was selected once, canceling then selecting an invalid file would pass the valididty check.
Fixes it, but not sure why it is required as we're supposed to overwrite the buffer each time we load a file for flashing - there might be a better fix.