Fixed crash in parseresources due to last patch.