Fix missing clearing of error in texturehack patch