Fix for ResFileValue cast to ResAttr exception

Just a simple try-catch to fix the ClassCastException which cause the fail to decode the resources.