Fix crash in dmd5 format found by Alexander Cherepanov

(don't you just hate that guy?) ;)