Fixed crash in hasSuffix (Fixed #141)