[Properties] Throw an error if a property is invalid
[Properties] Throw an error if a property is invalid

It should be a lot more obvious if a widget uses an invalid property type,
so check for that case and throw an error instead of failing silently.
Also, throw in another error case, and comment out debug statement.

crazyart/rib,b-cuts/rib,xuqingkuang/rib,Galen-Titanium/rib,modulexcite/rib,xuqingkuang/rib,maxyu/rib,carlst/rib,b-cuts/rib,cubemoon/rib,cubemoon/rib,modulexcite/rib,ndkeren/rib,2braincells2go/rib,smallertomato/rib,jsphkhan/rib,pplaquette/rib,2braincells2go/rib,maxyu/rib,wuyongfeng/rib,DonnaWuDongxia/rib,eaglebk/rib,carlst/rib,taubmann/rib,wuyongfeng/rib,jsphkhan/rib,modulexcite/rib,Galen-Titanium/rib,b-cuts/rib,zhizhangchen/rib,suoko/rib,jmptrader/rib,smallertomato/rib,Safiya85/rib,KevinChanH/rib,ndkeren/rib,jmptrader/rib,Galen-Titanium/rib,crazyart/rib,Safiya85/rib,KevinChanH/rib,taubmann/rib,01org/rib,amithnair/rib,suoko/rib,01org/rib,vevedh/rib,amithnair/rib,byjg/rib,byjg/rib,KevinChanH/rib,VIP000/rib,eaglebk/rib,suoko/rib,VIP000/rib,crazyart/rib,2braincells2go/rib,jmptrader/rib,xuzhang/rib,vevedh/rib,amithnair/rib,DonnaWuDongxia/rib,01org/rib,pplaquette/rib,xuzhang/rib