Update CreateResource() so it creates an empty resource if it's invalid
Update CreateResource() so it creates an empty resource if it's invalid

yck1509/dnlib,ilkerhalil/dnlib,ZixiangBoy/dnlib,Arthur2e5/dnlib,picrap/dnlib,jorik041/dnlib,kiootic/dnlib,modulexcite/dnlib,0xd4d/dnlib