Fixes crash reported on https://phabricator.freedesktop.org/D786
Attach a file by drag & drop or click to upload