Strengthen another assert for increased safety. Fixes: #1749
Attach a file by drag & drop or click to upload