fix for when type doesnt exist or is falsy
fix for when type doesnt exist or is falsy

AlexisNo/waterline,eskygo/waterline,nbiton/waterline,ctartist621/waterline,balderdashy/waterline,metidia/waterline,tjwebb/waterline,particlebanana/waterline,contra/waterline,devinivy/waterline,marnusw/waterline,Atlantis-Software/waterline,jonniedeb/waterline,Zaggen/waterline,Atlantis-Software/offshore,listepo/waterline,jianpingw/waterline,3032441712/waterline,scippio/waterline,waterlinejs/waterline,moklick/waterline,luislobo/waterline,mmiller42/waterline,kriswill/waterline,antoniopol06/waterline,postmanlabs/sails-mysql-transactions-waterline,atiertant/offshore,citizenken/waterline,mcanthony/waterline,hippich/waterline,dmarcelino/waterline