Fix crash caused by 8c1385205a35
(thanks Arfrever for reporting).