Fix a crash clicking the “run” button in an empty message box.